package com.bawei.base.room

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import retrofit2.http.DELETE

@Dao
interface NewsDao {
    @Insert(onConflict = 1)
    fun insert(newsRoomEntity: NewsRoomEntity)

    @Query("select * from NewsRoomEntity")
    fun getAll(): List<NewsRoomEntity>

    @Delete
    fun delete(newsRoomEntity: NewsRoomEntity)

}